package com.mashibing.servicemap.service.impl;

import com.mashibing.servicemap.remote.TerminalClient;
import com.mashibing.servicemap.service.TerminalService;
import org.mashibing.dto.ResponseResult;
import org.mashibing.response.TerminalResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:
 * @create: 2024/7/2 10:25
 * @description:
 */
@Service
public class TerminalServiceImpl implements TerminalService {

    @Autowired
    TerminalClient terminalClient;


    @Override
    public ResponseResult<TerminalResponse> add(String name, String desc) {
        return terminalClient.add(name, desc);
    }

    @Override
    public ResponseResult<List<TerminalResponse>> aroundsearch(String center, Integer radius) {
        return terminalClient.aroundsearch(center,radius);
    }
}
